package com.study.aop.springAop.基于xml;


import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author chenhs
 * @date 2019/9/25
 */



public class MyAspect implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation methodInvocation) throws Throwable {
		System.out.println("前方法");
		/*执行目标方法需要手动调用*/
		Object proceed = methodInvocation.proceed();
		System.out.println("后方法");
		return proceed;
	}
}
